@model EIMS.Models.CustomerContact

@{
    ViewData["Title"] = "删除联系人";
}

<div class="container-fluid px-4">
    <h1 class="mt-4">@ViewData["Title"]</h1>
    <ol class="breadcrumb mb-4">
        <li class="breadcrumb-item"><a asp-controller="Home" asp-action="Index">首页</a></li>
        <li class="breadcrumb-item"><a asp-controller="Customer" asp-action="Index">客户管理</a></li>
        <li class="breadcrumb-item"><a asp-controller="Customer" asp-action="Details" asp-route-id="@Model.CustomerId">客户详情</a></li>
        <li class="breadcrumb-item active">删除联系人</li>
    </ol>
    
    <div class="card mb-4">
        <div class="card-header">
            <i class="fas fa-exclamation-triangle me-1 text-danger"></i>
            确认删除联系人
        </div>
        <div class="card-body">
            <div class="alert alert-danger">
                <h5>您确定要删除此联系人吗？</h5>
                <p>此操作将永久删除该联系人记录且无法恢复。</p>
            </div>
            
            <dl class="row">
                <dt class="col-sm-3">客户名称</dt>
                <dd class="col-sm-9">@Model.Customer.Name</dd>
                
                <dt class="col-sm-3">联系人姓名</dt>
                <dd class="col-sm-9">@Model.Name</dd>
                
                <dt class="col-sm-3">职位</dt>
                <dd class="col-sm-9">@Model.Position</dd>
                
                <dt class="col-sm-3">部门</dt>
                <dd class="col-sm-9">@Model.Department</dd>
                
                <dt class="col-sm-3">手机号码</dt>
                <dd class="col-sm-9">@Model.Mobile</dd>
                
                <dt class="col-sm-3">电子邮箱</dt>
                <dd class="col-sm-9">@Model.Email</dd>
                
                <dt class="col-sm-3">是否主要联系人</dt>
                <dd class="col-sm-9">@(Model.IsPrimary ? "是" : "否")</dd>
            </dl>
            
            <form asp-action="DeleteContactConfirmed" method="post">
                <input type="hidden" name="id" value="@Model.Id" />
                <div class="form-group">
                    <button type="submit" class="btn btn-danger">
                        <i class="fas fa-trash"></i> 确认删除
                    </button>
                    <a asp-action="Details" asp-route-id="@Model.CustomerId" class="btn btn-secondary">
                        <i class="fas fa-arrow-left"></i> 返回
                    </a>
                </div>
            </form>
        </div>
    </div>
</div> 